package com.tojabo.swing.ten_fileChooser;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.UIManager;

public class ChangeBackgroud {
	static final int WIDTH = 480;
	static final int HEIGHT = 500;


	private JFrame frame;
	
	private ChangePanel changePanel;
	

	public ChangeBackgroud() {
		frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		try {
			// 将LookAndFeel设置成Windows样式
			UIManager
					.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (Exception ex) {
			ex.printStackTrace();
		}

		changePanel = new ChangePanel(frame);

		frame.setUndecorated(true);  
        //Dimension d = Toolkit.getDefaultToolkit().getScreenSize();  
        frame.setSize(1366, 768);  
		
		frame.add(changePanel);
		//frame.setSize(WIDTH, HEIGHT);
		frame.setVisible(true);
	}

	

	public static void main(String[] args) {
		new ChangeBackgroud();
	}
}
